package com.example.xpvideo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 频道标签
 * @TableName ls_channel_label
 */
@TableName(value ="ls_channel_label")
@Data
public class LsChannelLabel implements Serializable {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 频道标签
     */
    @NotBlank(message = "请输入频道名称")
    private String label;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}